package com.ysd.lis.entity.emr;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ysd.lis.entity.BaseEntityJpa;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/***
 *@title EmrTask
 *@author WH
 *@version 1.0.0
 *@create 2025/6/7 14:11
 **/
@Data
@EqualsAndHashCode(callSuper = true)
@Entity
@TableName("EMR_PROCESS")
@Table(name = "EMR_PROCESS")
public class EmrProcess extends BaseEntityJpa {

    /**
     * 流程编码
     */
    @Column(name = "PROCESS_CODE")
    @TableField("PROCESS_CODE")
    private String processCode;

    /**
     * 流程名称
     */
    @Column(name = "PROCESS_NAME")
    @TableField("PROCESS_NAME")
    private String processName;
    /**
     * 版本code
     */
    @TableField("VERSION_CODE")
    @Column(name = "VERSION_CODE")
    private String versionCode;


    /**
     * 级别编码
     */
    @Column(name = "GRADE_CODE")
    @TableField("GRADE_CODE")
    private String gradeCode;

    /**
     * 状态(0,未完成,1已完成)
     */
    @Column(name = "STATUS")
    @TableField("STATUS")
    private String status;

    /**
     * 版本名称
     */
    @TableField(exist = false)
    @Transient
    private String versionName;

    /**
     * 级别名称
     */
    @TableField(exist = false)
    @Transient
    private String gradeName;

    /**
     * 完成数量
     */
    @TableField(exist = false)
    @Transient
    private long finishData;
    /**
     * 总数
     */
    @TableField(exist = false)
    @Transient
    private long sumData;


}
